#!/bin/bash

while IFS= read -r package; do
  if [[ ! "$package" =~ :amd64$ ]]; then
    echo "${package}:amd64" >> packages_with_amd64_suffix.txt
  else
    echo "${package}" >> packages_with_amd64_suffix.txt
  fi
done < packages.txt
